package com.atguigu.aopannotation;

import com.atguigu.aopanno.User;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestMethod {


    @Test
    public void testAopAnnoTwo() {
        ApplicationContext context
                = new ClassPathXmlApplicationContext("bean1.xml");

        User user = context.getBean("user", User.class);
        user.addPointAnnotation();
    }


}
